﻿Public Class CabinaNegocio


    Public Function listar() As Collection
        Dim dao As New CabinaDAO
        Return dao.listar()
    End Function

    Public Function buscarPorNombre(ByVal nombre As String) As Collection
        Dim dao As New CabinaDAO

        Return dao.buscarPorNombre(nombre)
    End Function


    Public Function insertar(ByVal Nombre_encargado As String, ByVal Direccion As String) As Cabina


        Dim part As New Cabina()

        part.Nombre_encargado = Nombre_encargado
        part.Direccion = Direccion
        

        Dim dao As New CabinaDAO

        Return dao.insertar(part)
    End Function







End Class
